package com.gpf.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.gpf.pojo.SysUser;
import com.gpf.pojo.SysUserDept;

@Mapper
public interface SysUserDao {
	Long getRowCount( String username);
	List<SysUserDept> findPageObjects(@Param("username")String  username,@Param("startIndex")Integer startIndex,@Param("pageSize")Integer pageSize);
	int validById(@Param("id")Integer id,@Param("valid")Integer valid,@Param("modifiedUser")String modifiedUser);
	int insertObject(SysUser entity);
	SysUserDept findObjectById(Integer id);
	int updateObject(SysUser entity);
	int updatePassword(@Param("password")String password,@Param("salt")String salt,@Param("id")Integer id);
	SysUser findUserByUserName(String username);
}
